Skip to main content
Version: 4.3.x {testing}

Static brake

Static brake is a basic braking source. A push button is usually used as an input element. Its output (0 or 1) is then multiplied by the value of parameter sbrakelvl (this allows us to define the maximal braking force of static brake input). There is also the possibility to change the dynamic of the ascending and descending rate of this braking signal by parameters rgnslup and rgnsldn. Simple signal flow is depicted in the picture below

sbrake.jpg

Configuration steps

Setting static brake input

The LYNX allows you to use different GPIO input pins for the static brake signal. This is done by setting the parameter /io/IN_sbrake to the GDIN ID of the static brake signal.

/io/IN_sbrake valueInput name
16GDIN0
17GDIN1
18GDIN2
19GDIN3
20GDIN4
32DIN1
33DIN2
......
39DIN8

Check the Input mapping for more information.

caution

You may want to enable pull-up. Check ioconf configuration

Setting the maximum braking force

If the brake is applied, the sbrakelvl is a command to the driver and the /driver/ìrefr is the reference for the phase current. More about braking current reference
The sbrakelvl parameter is located in each map folder (/maps/mapX). Tune this parameter to set maximum braking for each map. More about maps.

info

If the sbrakelvl is 0, the braking is disabled, but the static brake still disables the throttle. You can disable static brake using the options parameter in the maps folders - More about options.

Tuning the braking response

Using the parameters/brake/rgnslup and /brake/rgnsldn, you can change how fast is the braking applied and released. The value of the parameters is LPF, more about the LPF can be found in the LPF - Low Pass Filter documentation.

tip
  • The actual braking signal (only from static brake) is visible in the /brake/sig_sbrake state variable.
  • The actual sbrakelvl value is visible in the /brake/sbrakelvl state variable.